//
//  NearHandleCell.m
//  CarLife
//
//  Created by yu on 2017/11/13.
//  Copyright © 2017年 jpas. All rights reserved.
//

#import "NearHandleCell.h"

@implementation NearHandleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)handleAction:(UIButton *)btn {
    
    NSString *keyword;
//    NSInteger *index;
    switch (btn.tag) {
        case 1: keyword = @"酒店"; break;
        case 2: keyword = @"加油站"; break;
        case 3: keyword = @"公交站"; break;
        case 4: keyword = @"银行"; break;
        case 5: keyword = @"超市"; break;
        case 6: keyword = @"美食"; break;
        case 7: keyword = @"医院"; break;
        case 8: keyword = @"停车场"; break;
        default:
            break;
    }
    
    if (self.handleActionBlock) {
        self.handleActionBlock(btn.tag,keyword);
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
